package com.lenovo.smarttraffic.Interface;

import android.content.Context;
import android.content.Intent;
import android.webkit.JavascriptInterface;

import com.lenovo.smarttraffic.InitApp;
import com.lenovo.smarttraffic.ui.activity.stage6.MainActivity;

public class callAndroid extends Object {

    private Context context = InitApp.getContext();

    @JavascriptInterface
    public void start(int which) {
        switch (which) {
            case 1:
                context.startActivity(new Intent(context, MainActivity.class));
                break;
            case 2:
                context.startActivity(new Intent(context, MainActivity.class));
                break;
            case 3:
                context.startActivity(new Intent(context, MainActivity.class));
                break;
            case 4:
                context.startActivity(new Intent(context, MainActivity.class));
                break;
            case 5:
                context.startActivity(new Intent(context, MainActivity.class));
                break;
            case 6:
                context.startActivity(new Intent(context, MainActivity.class));
                break;
            case 7:
                context.startActivity(new Intent(context, MainActivity.class));
                break;
        }
    }

}
